package com.intelligencesoft.pss.utils.auth;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.springframework.stereotype.Repository;

@Repository
public class AuthMd5Hash implements AuthEncryption {

	@Override
	public String md5Hash(Object str) {
		if (str!=null) {
			return new Md5Hash(str).toHex();
		}
		return null;
	}
}
